package com.itheima.xx.dao;

import com.itheima.xx.pojo.Order;
import org.apache.ibatis.annotations.Param;

/**
 * Description:
 *
 * @author codermao
 * @date 2023/10/26 15:33
 */
public interface OrderMapper {
    /**
     * 一对一查询：查询订单号为20140921001的订单的详情信息,并查询出下单人信息
     */
    Order queryOneToOne(@Param("orderName") String orderName);

    /**
     * 根据orderNumber查询订单及其详情信息
     * @param orderNumber
     * @return
     */
    Order queryOrderAndDetailByOrderNumber(@Param("orderNumber") String orderNumber);
}
